package daily;

import java.util.Calendar;

public class day3_07 {
	public static void main(String[] args) {
		int ans = 0;
		Calendar calendar = Calendar.getInstance();
		for (int year = 1901; year <= 2000; year++) {
			for (int month = 0; month < 12; month++) {
				calendar.clear();
				calendar.set(Calendar.YEAR, year);
				calendar.set(Calendar.MONTH, month);

				int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
				for (int day = 1; day <= maxDay; day++) {
					calendar.set(Calendar.DAY_OF_MONTH, day);
					if (calendar.get(Calendar.DAY_OF_WEEK) == 2)
						ans++;
				}
			}
		}
		System.out.println(ans);
	}
}
